package com.tao.ifdemo2;

import java.util.Scanner;

public class IfDemo4 {
    public static void main(String[] args) {
        double grade;
        Scanner input = new Scanner(System.in);
        grade = input.nextDouble();
        if (grade > 100 || grade < 0) {
            System.err.println("输入的数据有误");
        } else if (grade >= 90) { // 90 ~ 100
            System.out.println("优秀");
        } else if (grade >= 70) { // 70 ~ 90
            System.out.println("良好");
        } else if (grade >= 60) { // 60 ~ 70
            System.out.println("及格");
        } else { // 60以下
            System.out.println("不及格");
        }
    }
}
